home *** CD-ROM | disk | FTP | other *** search
- Path: news4.noc.netcom.net!zdc!zippo!usenet
- Newsgroups: comp.lang.c
- Subject: Re: Spawn and exit...
- Message-ID: <DKyyE1.Bu5@news.zippo.com>
- From: Jim McFarland <jgm6@orkand.em.cdc.gov>
- Date: Wed, 10 Jan 1996 14:18:00 GMT
- Sender: usenet@news.zippo.com
- References: <4ckcjc$e84@oly.olympic.net>
- Organization: The Orkand Corporation
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- Nntp-Posting-Host: 158.111.166.77
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
- Mime-Version: 1.0
-
- poke@oly.olympic.net (Charlie Chaplin ) wrote:
- >I am having trouble writing a program that spwans my windows 3.11 then
- >kills itself. I realize that windows 3.11 would be a child process. The
- >parent process takes up so much memory that it slows my windows down too
- >much. The program that I wrote was a result of my father's complaints.
- >Whenever I get into debugging the computer I rem out the win statement in
- >the autoexec.bat, because I tend to reboot the computer a lot when I'm
- >debugging. This is a very long and tedious process if windows has to load
- >up every time(yes I know about F5, read on and you will understand). The
- >problem is, I forget to unrem the win statement, and my
- >semi-literate father can't figure out how to get word 6.0 working(Yes
- >I've told hime a million times to just type WIN), and he starts
- >hollering at me. If I hit F5 during reboot I don't get the path
- >statement the memory managers and the config.sys, which are necessary for
- >what I'm doing. So I wrote a program called win.exe and I placed it in my
- >root directory. WHen the autoexec.bat gets down to the win statement it
- >executes the local win.exe file. win.exe pauses the computer for about 4
- >seconds and then spawns windows 3.11. If any key is pressed during the 4
- >second pause the program exits and I am left with a DOS prompt. I just
- >need help getting my program to kill itself if it ends up spawning
- >windows 3.11, win.exe takes up almost 80K of memory when it's resident. I
- >have also tried the system() function, it does the same thing.
-
- Try using one of the execlp() type functions instead of spawning it.
-